package com.goldmantis.alitrip.service;

import com.goldmantis.alitrip.mapper.SysResMapper;
import com.goldmantis.alitrip.mapper.SysUserResMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.validation.Valid;
import java.util.List;
import java.util.Map;

/**
 * @Author:Shmily
 * @Description:
 * @Date:Create in 15:15 2018/3/8
 */
@Service
public class SysUserResService {

    @Autowired
    private SysUserResMapper sysUserResMapper;

    @Value("${systemId}")
    private Long systemId;

    public List<Map> getResBySystemIdAndUserId(Long userId){
        return this.sysUserResMapper.getResBySystemIdAndUserId(systemId,userId);
    }
}
